package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.diggold.config.DigGoldAntiqueConfig;
import com.yanqu.road.entity.activity.diggold.config.DigGoldBlockConfig;
import com.yanqu.road.entity.activity.diggold.config.DigGoldMapConfig;
import com.yanqu.road.entity.activity.diggold.config.DigGoldStratumConfig;
import com.yanqu.road.entity.activity.diggold.data.DigGoldUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class DigGoldBusiness {

    public static Map<Integer, DigGoldAntiqueConfig> getDigGoldAntiqueConfigMap(int activityId){
        return DaoHelper.getDigGoldConfigDaoImpl().getDigGoldAntiqueConfigMap(activityId);
    }

    public static Map<Integer, DigGoldBlockConfig> getDigGoldBlockConfigMap(int activityId){
        return DaoHelper.getDigGoldConfigDaoImpl().getDigGoldBlockConfigMap(activityId);
    }

    public static Map<Integer, DigGoldMapConfig> getDigGoldMapConfigMap(int activityId){
        return DaoHelper.getDigGoldConfigDaoImpl().getDigGoldMapConfigMap(activityId);
    }

    public static Map<Integer, DigGoldStratumConfig> getDigGoldStratumConfigMap(int activityId){
        return DaoHelper.getDigGoldConfigDaoImpl().getDigGoldStratumConfigMap(activityId);
    }

    public static DigGoldUserData getDigGoldUserData(int activityId, long userId){
        return DaoHelper.getDigGoldUserDataDaoImpl().getDigGoldUserData(activityId,userId);
    }

    public static boolean addDigGoldUserData(DigGoldUserData digGoldUserData){
        return DaoHelper.getDigGoldUserDataDaoImpl().add(digGoldUserData);
    }

    public static boolean updateDigGoldUserData(DigGoldUserData digGoldUserData){
        return DaoHelper.getDigGoldUserDataDaoImpl().update(digGoldUserData);
    }



}
